#
#  Copyright 2019 The FATE Authors. All Rights Reserved.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: federation.proto

import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()


import basic_meta_pb2 as basic__meta__pb2
import storage_basic_pb2 as storage__basic__pb2


DESCRIPTOR = _descriptor.FileDescriptor(
  name='federation.proto',
  package='com.webank.ai.fate.api.driver.federation',
  syntax='proto3',
  serialized_options=None,
  serialized_pb=_b('\n\x10\x66\x65\x64\x65ration.proto\x12(com.webank.ai.fate.api.driver.federation\x1a\x10\x62\x61sic-meta.proto\x1a\x13storage-basic.proto\"&\n\x05Party\x12\x0f\n\x07partyId\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"\xcf\x01\n\x10TransferDataDesc\x12T\n\x10transferDataType\x18\x01 \x01(\x0e\x32:.com.webank.ai.fate.api.driver.federation.TransferDataType\x12I\n\x0estorageLocator\x18\x02 \x01(\x0b\x32\x31.com.webank.ai.eggroll.api.storage.StorageLocator\x12\x1a\n\x12taggedVariableName\x18\x03 \x01(\x0c\"d\n\x0cTransferConf\x12\x16\n\x0eoverallTimeout\x18\x01 \x01(\x03\x12\x1d\n\x15\x63ompletionWaitTimeout\x18\x02 \x01(\x03\x12\x1d\n\x15packetIntervalTimeout\x18\x03 \x01(\x03\"\xb9\x04\n\x0cTransferMeta\x12\x30\n\x03job\x18\x01 \x01(\x0b\x32#.com.webank.ai.eggroll.api.core.Job\x12\x0b\n\x03tag\x18\x02 \x01(\t\x12<\n\x03src\x18\x03 \x01(\x0b\x32/.com.webank.ai.fate.api.driver.federation.Party\x12<\n\x03\x64st\x18\x04 \x01(\x0b\x32/.com.webank.ai.fate.api.driver.federation.Party\x12L\n\x08\x64\x61taDesc\x18\x05 \x01(\x0b\x32:.com.webank.ai.fate.api.driver.federation.TransferDataDesc\x12\x44\n\x04type\x18\x06 \x01(\x0e\x32\x36.com.webank.ai.fate.api.driver.federation.TransferType\x12P\n\x0etransferStatus\x18\x07 \x01(\x0e\x32\x38.com.webank.ai.fate.api.driver.federation.TransferStatus\x12\x44\n\x04\x63onf\x18\x08 \x01(\x0b\x32\x36.com.webank.ai.fate.api.driver.federation.TransferConf\x12\x42\n\x0creturnStatus\x18\t \x01(\x0b\x32,.com.webank.ai.eggroll.api.core.ReturnStatus*m\n\x0eTransferStatus\x12\x11\n\rNOT_PROCESSED\x10\x00\x12\x10\n\x0cINITIALIZING\x10\x01\x12\x0e\n\nPROCESSING\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03\x12\t\n\x05\x45RROR\x10\x04\x12\r\n\tCANCELLED\x10\x05*\"\n\x0cTransferType\x12\x08\n\x04SEND\x10\x00\x12\x08\n\x04RECV\x10\x01*=\n\x10TransferDataType\x12\x11\n\rNOT_SPECIFIED\x10\x00\x12\n\n\x06\x44TABLE\x10\x01\x12\n\n\x06OBJECT\x10\x02\x32\x89\x04\n\x15TransferSubmitService\x12v\n\x04send\x12\x36.com.webank.ai.fate.api.driver.federation.TransferMeta\x1a\x36.com.webank.ai.fate.api.driver.federation.TransferMeta\x12v\n\x04recv\x12\x36.com.webank.ai.fate.api.driver.federation.TransferMeta\x1a\x36.com.webank.ai.fate.api.driver.federation.TransferMeta\x12\x80\x01\n\x0e\x63heckStatusNow\x12\x36.com.webank.ai.fate.api.driver.federation.TransferMeta\x1a\x36.com.webank.ai.fate.api.driver.federation.TransferMeta\x12}\n\x0b\x63heckStatus\x12\x36.com.webank.ai.fate.api.driver.federation.TransferMeta\x1a\x36.com.webank.ai.fate.api.driver.federation.TransferMetab\x06proto3')
  ,
  dependencies=[basic__meta__pb2.DESCRIPTOR,storage__basic__pb2.DESCRIPTOR,])

_TRANSFERSTATUS = _descriptor.EnumDescriptor(
  name='TransferStatus',
  full_name='com.webank.ai.fate.api.driver.federation.TransferStatus',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='NOT_PROCESSED', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='INITIALIZING', index=1, number=1,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='PROCESSING', index=2, number=2,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='COMPLETE', index=3, number=3,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='ERROR', index=4, number=4,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='CANCELLED', index=5, number=5,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=1025,
  serialized_end=1134,
)
_sym_db.RegisterEnumDescriptor(_TRANSFERSTATUS)

TransferStatus = enum_type_wrapper.EnumTypeWrapper(_TRANSFERSTATUS)
_TRANSFERTYPE = _descriptor.EnumDescriptor(
  name='TransferType',
  full_name='com.webank.ai.fate.api.driver.federation.TransferType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='SEND', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='RECV', index=1, number=1,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=1136,
  serialized_end=1170,
)
_sym_db.RegisterEnumDescriptor(_TRANSFERTYPE)

TransferType = enum_type_wrapper.EnumTypeWrapper(_TRANSFERTYPE)
_TRANSFERDATATYPE = _descriptor.EnumDescriptor(
  name='TransferDataType',
  full_name='com.webank.ai.fate.api.driver.federation.TransferDataType',
  filename=None,
  file=DESCRIPTOR,
  values=[
    _descriptor.EnumValueDescriptor(
      name='NOT_SPECIFIED', index=0, number=0,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='DTABLE', index=1, number=1,
      serialized_options=None,
      type=None),
    _descriptor.EnumValueDescriptor(
      name='OBJECT', index=2, number=2,
      serialized_options=None,
      type=None),
  ],
  containing_type=None,
  serialized_options=None,
  serialized_start=1172,
  serialized_end=1233,
)
_sym_db.RegisterEnumDescriptor(_TRANSFERDATATYPE)

TransferDataType = enum_type_wrapper.EnumTypeWrapper(_TRANSFERDATATYPE)
NOT_PROCESSED = 0
INITIALIZING = 1
PROCESSING = 2
COMPLETE = 3
ERROR = 4
CANCELLED = 5
SEND = 0
RECV = 1
NOT_SPECIFIED = 0
DTABLE = 1
OBJECT = 2



_PARTY = _descriptor.Descriptor(
  name='Party',
  full_name='com.webank.ai.fate.api.driver.federation.Party',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='partyId', full_name='com.webank.ai.fate.api.driver.federation.Party.partyId', index=0,
      number=1, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='name', full_name='com.webank.ai.fate.api.driver.federation.Party.name', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=101,
  serialized_end=139,
)


_TRANSFERDATADESC = _descriptor.Descriptor(
  name='TransferDataDesc',
  full_name='com.webank.ai.fate.api.driver.federation.TransferDataDesc',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='transferDataType', full_name='com.webank.ai.fate.api.driver.federation.TransferDataDesc.transferDataType', index=0,
      number=1, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='storageLocator', full_name='com.webank.ai.fate.api.driver.federation.TransferDataDesc.storageLocator', index=1,
      number=2, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='taggedVariableName', full_name='com.webank.ai.fate.api.driver.federation.TransferDataDesc.taggedVariableName', index=2,
      number=3, type=12, cpp_type=9, label=1,
      has_default_value=False, default_value=_b(""),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=142,
  serialized_end=349,
)


_TRANSFERCONF = _descriptor.Descriptor(
  name='TransferConf',
  full_name='com.webank.ai.fate.api.driver.federation.TransferConf',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='overallTimeout', full_name='com.webank.ai.fate.api.driver.federation.TransferConf.overallTimeout', index=0,
      number=1, type=3, cpp_type=2, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='completionWaitTimeout', full_name='com.webank.ai.fate.api.driver.federation.TransferConf.completionWaitTimeout', index=1,
      number=2, type=3, cpp_type=2, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='packetIntervalTimeout', full_name='com.webank.ai.fate.api.driver.federation.TransferConf.packetIntervalTimeout', index=2,
      number=3, type=3, cpp_type=2, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=351,
  serialized_end=451,
)


_TRANSFERMETA = _descriptor.Descriptor(
  name='TransferMeta',
  full_name='com.webank.ai.fate.api.driver.federation.TransferMeta',
  filename=None,
  file=DESCRIPTOR,
  containing_type=None,
  fields=[
    _descriptor.FieldDescriptor(
      name='job', full_name='com.webank.ai.fate.api.driver.federation.TransferMeta.job', index=0,
      number=1, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='tag', full_name='com.webank.ai.fate.api.driver.federation.TransferMeta.tag', index=1,
      number=2, type=9, cpp_type=9, label=1,
      has_default_value=False, default_value=_b("").decode('utf-8'),
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='src', full_name='com.webank.ai.fate.api.driver.federation.TransferMeta.src', index=2,
      number=3, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='dst', full_name='com.webank.ai.fate.api.driver.federation.TransferMeta.dst', index=3,
      number=4, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='dataDesc', full_name='com.webank.ai.fate.api.driver.federation.TransferMeta.dataDesc', index=4,
      number=5, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='type', full_name='com.webank.ai.fate.api.driver.federation.TransferMeta.type', index=5,
      number=6, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='transferStatus', full_name='com.webank.ai.fate.api.driver.federation.TransferMeta.transferStatus', index=6,
      number=7, type=14, cpp_type=8, label=1,
      has_default_value=False, default_value=0,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='conf', full_name='com.webank.ai.fate.api.driver.federation.TransferMeta.conf', index=7,
      number=8, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
    _descriptor.FieldDescriptor(
      name='returnStatus', full_name='com.webank.ai.fate.api.driver.federation.TransferMeta.returnStatus', index=8,
      number=9, type=11, cpp_type=10, label=1,
      has_default_value=False, default_value=None,
      message_type=None, enum_type=None, containing_type=None,
      is_extension=False, extension_scope=None,
      serialized_options=None, file=DESCRIPTOR),
  ],
  extensions=[
  ],
  nested_types=[],
  enum_types=[
  ],
  serialized_options=None,
  is_extendable=False,
  syntax='proto3',
  extension_ranges=[],
  oneofs=[
  ],
  serialized_start=454,
  serialized_end=1023,
)

_TRANSFERDATADESC.fields_by_name['transferDataType'].enum_type = _TRANSFERDATATYPE
_TRANSFERDATADESC.fields_by_name['storageLocator'].message_type = storage__basic__pb2._STORAGELOCATOR
_TRANSFERMETA.fields_by_name['job'].message_type = basic__meta__pb2._JOB
_TRANSFERMETA.fields_by_name['src'].message_type = _PARTY
_TRANSFERMETA.fields_by_name['dst'].message_type = _PARTY
_TRANSFERMETA.fields_by_name['dataDesc'].message_type = _TRANSFERDATADESC
_TRANSFERMETA.fields_by_name['type'].enum_type = _TRANSFERTYPE
_TRANSFERMETA.fields_by_name['transferStatus'].enum_type = _TRANSFERSTATUS
_TRANSFERMETA.fields_by_name['conf'].message_type = _TRANSFERCONF
_TRANSFERMETA.fields_by_name['returnStatus'].message_type = basic__meta__pb2._RETURNSTATUS
DESCRIPTOR.message_types_by_name['Party'] = _PARTY
DESCRIPTOR.message_types_by_name['TransferDataDesc'] = _TRANSFERDATADESC
DESCRIPTOR.message_types_by_name['TransferConf'] = _TRANSFERCONF
DESCRIPTOR.message_types_by_name['TransferMeta'] = _TRANSFERMETA
DESCRIPTOR.enum_types_by_name['TransferStatus'] = _TRANSFERSTATUS
DESCRIPTOR.enum_types_by_name['TransferType'] = _TRANSFERTYPE
DESCRIPTOR.enum_types_by_name['TransferDataType'] = _TRANSFERDATATYPE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)

Party = _reflection.GeneratedProtocolMessageType('Party', (_message.Message,), dict(
  DESCRIPTOR = _PARTY,
  __module__ = 'federation_pb2'
  # @@protoc_insertion_point(class_scope:com.webank.ai.fate.api.driver.federation.Party)
  ))
_sym_db.RegisterMessage(Party)

TransferDataDesc = _reflection.GeneratedProtocolMessageType('TransferDataDesc', (_message.Message,), dict(
  DESCRIPTOR = _TRANSFERDATADESC,
  __module__ = 'federation_pb2'
  # @@protoc_insertion_point(class_scope:com.webank.ai.fate.api.driver.federation.TransferDataDesc)
  ))
_sym_db.RegisterMessage(TransferDataDesc)

TransferConf = _reflection.GeneratedProtocolMessageType('TransferConf', (_message.Message,), dict(
  DESCRIPTOR = _TRANSFERCONF,
  __module__ = 'federation_pb2'
  # @@protoc_insertion_point(class_scope:com.webank.ai.fate.api.driver.federation.TransferConf)
  ))
_sym_db.RegisterMessage(TransferConf)

TransferMeta = _reflection.GeneratedProtocolMessageType('TransferMeta', (_message.Message,), dict(
  DESCRIPTOR = _TRANSFERMETA,
  __module__ = 'federation_pb2'
  # @@protoc_insertion_point(class_scope:com.webank.ai.fate.api.driver.federation.TransferMeta)
  ))
_sym_db.RegisterMessage(TransferMeta)



_TRANSFERSUBMITSERVICE = _descriptor.ServiceDescriptor(
  name='TransferSubmitService',
  full_name='com.webank.ai.fate.api.driver.federation.TransferSubmitService',
  file=DESCRIPTOR,
  index=0,
  serialized_options=None,
  serialized_start=1236,
  serialized_end=1757,
  methods=[
  _descriptor.MethodDescriptor(
    name='send',
    full_name='com.webank.ai.fate.api.driver.federation.TransferSubmitService.send',
    index=0,
    containing_service=None,
    input_type=_TRANSFERMETA,
    output_type=_TRANSFERMETA,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='recv',
    full_name='com.webank.ai.fate.api.driver.federation.TransferSubmitService.recv',
    index=1,
    containing_service=None,
    input_type=_TRANSFERMETA,
    output_type=_TRANSFERMETA,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='checkStatusNow',
    full_name='com.webank.ai.fate.api.driver.federation.TransferSubmitService.checkStatusNow',
    index=2,
    containing_service=None,
    input_type=_TRANSFERMETA,
    output_type=_TRANSFERMETA,
    serialized_options=None,
  ),
  _descriptor.MethodDescriptor(
    name='checkStatus',
    full_name='com.webank.ai.fate.api.driver.federation.TransferSubmitService.checkStatus',
    index=3,
    containing_service=None,
    input_type=_TRANSFERMETA,
    output_type=_TRANSFERMETA,
    serialized_options=None,
  ),
])
_sym_db.RegisterServiceDescriptor(_TRANSFERSUBMITSERVICE)

DESCRIPTOR.services_by_name['TransferSubmitService'] = _TRANSFERSUBMITSERVICE

# @@protoc_insertion_point(module_scope)
